]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Disable overshoot gesture in multi-monitor setups
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 16 Dec 2022 11:09:00 +0000 (12:09 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 19 Dec 2022 11:37:58 +0000 (11:37 +0000)
The "bump against monitor edge" thing can't work when there's a monitor
adjacent to the current one, so just disable the gesture in case there's
more than a single monitor.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2581>

js/ui/appDisplay.js

index bb2cb592289d91af82115b89af48a68fcb26fc3f..343f6fd815959dfbf395fc2ffd4420ae5767113d 100644 (file)
@@ -868,6 +868,11 @@ var BaseAppView = GObject.registerClass({
     }
 
     _dragMaybeSwitchPageImmediately(dragEvent) {
+        // When there's an adjacent monitor, this gesture conflicts with
+        // dragging to the adjacent monitor, so disable in multi-monitor setups
+        if (Main.layoutManager.monitors.length > 1)
+            return false;
+
         // Already animating
         if (this._adjustment.get_transition('value') !== null)
             return false;